#include "IDialog.h"

IDialog::IDialog()
{

}

IDialog::~IDialog()
{

}


QRect IDialog::getCenter(int dialogWidth, int dialogHeight)
{
    QRect rect;
    rect.setX((WIN_MAX_WIDTH - dialogWidth)/2);
    rect.setY((WIN_MAX_HEIGHT - dialogHeight)/2);
    rect.setWidth(dialogWidth);
    rect.setHeight(dialogHeight);
    return rect;
}


